/*
*
* RoleMapper.java
* @date 2019-01-15
*/
package com.lyz.myself.mapper;

import com.lyz.myself.pojo.Po.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    /**
     *添加
     * @mbg.generated 2019-01-15
     */
    int insert(Role record);

    /**
     *
     * @mbg.generated 2019-01-15
     */
    int insertSelective(Role record);

    /**
     *根据position    id查询role_id
     */
    Role getRole(@Param("position_id") Integer position_id,@Param("company_id") Integer company_id);

    /**
     *删除关系
     * @mbg.generated 2019-01-15
     */
    int deleteRole(@Param("role_id") Integer role_id);
}